package com.zl.mapper;

import com.zl.entity.TsRolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色权限映射持久化接口
 *
 * @author ljw
 */
@Mapper
public interface RolePermissionMapper{

	public List<TsRolePermission> findByRoleId(@Param("roleId") Long roleId);
	
	public int deleteByPermissionIds(@Param("idList") List<Long> idList);
	
	public int deleteByRoleIds(@Param("idList") List<Long> idList);
	
	public int deleteByAppIds(@Param("idList") List<Long> idList);
}
